package com.calsoft.Hops_Mobile_Tablet;
/*
 * User: Minh Diep
 * Date: 7/1/13
 * Time: 1:51 PM
 */

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

public class DealsSectionsPagerAdapter extends FragmentStatePagerAdapter {

    public static final String DEALS_SECTION_NUMBER = "com.calsoft.hops.mobile.deals.section.number";

    public DealsSectionsPagerAdapter(FragmentManager fm){
        super(fm);
    }
    @Override
    public Fragment getItem(int i) {
        switch (i){
            case 0: break;
            case 1: break;
            case 2: break;
        }

        DealsDetailFragment fragment = new DealsDetailFragment();
        Bundle bundle = new Bundle();
        bundle.putString(DEALS_SECTION_NUMBER, "deal_" + (i + 1));
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    public int getCount() {
        return 3;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return "" + (1 + position) + " of " + getCount() + " deals";
    }
}
